<?php if (!defined('THINK_PATH')) exit();?>      <p class="user_title" style="height: 40px;line-height: 40px;border-bottom: 1px solid #fff;">
        <span style="font-size: 20px; padding-left: 12px; position:absolute;"><?php echo ($data); ?></span>
        <button style="font-size: 16px; background:#ccc; position:relative;left:800px; " class="  btn-sm" type="submit">添加图片墙图片</button>
      </p>
          <div class="col-sm-12">
      <div class="groupimg_content">
        <div class="row">

		    <div class="col-sm-12">
		     <span id="msg" style="color:red;font-size:20px; "></span>
		    </div>
	
      <?php if(is_array($wall)): $i = 0; $__LIST__ = $wall;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$g): $mod = ($i % 2 );++$i;?><div class="col-sm-4 col-md-3">
            <a href="#" class="thumbnail">
              <img src="/mydemo/Public/<?php echo ($g["url"]); ?>" imgtitle="周英秋傻B" class="imgcss" onerror="this.src='/mydemo/Public/img/moren.jpg'" alt="...">
                 <span id="<?php echo ($g["id"]); ?>" style="position:absolute;left:0;top:140px;width:100%;height:30%;background:rgba(0,0,0,.3);display:none;text-align:center;margin-top:0px;color:#fff;font-size:15px;">
                  <p class="content2">删除</p>
                </span>
            </a>
          </div><?php endforeach; endif; else: echo "" ;endif; ?>
        </div>
      </div>
    </div>
        <script type="text/javascript">
        $(function(){


     $('.thumbnail').mouseover(function() {
     	$(this).children('span').show();
     });
     $('.thumbnail').mouseleave(function() {
     	$(this).children('span').hide();
     });

     $('.thumbnail span').bind('click',function(){
     	$(this).parent('a').hide();
         var id = $(this).attr('id');
         $.ajax({
           url: "<?php echo u('ajax_del_wall');?>",
           type: 'POST',
           dataType: 'json',
           data: {id: id},
           complete: function(xhr, textStatus) {
             //called when complete
           },
           success: function(data) {
             if(data.status == 1){
             	$('#msg').html(data.msg).css('color','green').show();
             	 setTimeout(function(){
                  $('#msg').html("").hide();
                    },1000);
             }else{
             	$('#msg').html(data.msg).show();
             	setTimeout(function(){
                    $('#msg').html("").hide();
                    },1000);
             }
           },
           error: function(xhr, textStatus, errorThrown) {
             //called when there is an error
           }
         });
         
     })
       });
    </script>